package com.crl.rcdp.sys.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @description:
 * @author: 孔垂云
 * @version: 1.0
 * @date: 2020/7/5 15:52
 */
@Data
public class SysUserLoginDTO {
    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    @Length(max = 30, min = 5)
    private String username;
    /**
     * 密码
     */
    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    /**
     * 验证码
     */
    @ApiModelProperty("验证码")
    private String code;

    @ApiModelProperty("系统标识")
//    @NotBlank(message = "系统标识不能为空")
    private String systemFlag;

    private Integer flag;

    @ApiModelProperty("客户端ip")
    private String clientIp;//客户端ip
}
